<?php

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use App\User;

class UserTableSeeder extends Seeder
{

    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        DB::table('users')->delete();

        User::create([
            'name' => '李玉亮',
            'gender' => 'male',
            'phone' => 18510333834,
            'address' => '陕西省西安市雁塔区会展中心东侧旺园小区4号楼3单元',
            'email' => '156155812@qq.com',
            'password' => bcrypt('3682439'),
            'role_id' => 2
        ]);
        User::create([
            'name' => '管理员',
            'gender' => 'male',
            'phone' => 13800138000,
            'address' => '陕西省西安市雁塔区会展中心东侧旺园小区4号楼3单元',
            'email' => 'admin@admin.com',
            'password' => bcrypt('admin'),
            'role_id' => 2
        ]);
    }

}
